<style>
#namanyay-search-btn {
background:#0099ff;
color:white;
font: 'trebuchet ms', trebuchet;
padding:10px 20px;
border-radius:0 10px 10px 0;
-moz-border-radius:0 10px 10px 0;
-webkit-border-radius:0 10px 10px 0;
-o-border-radius:0 10px 10px 0;
border:0 none;
font-weight:bold;
}
 
#namanyay-search-box {
background: #eee;
padding:10px;
 border-radius:10px 0 0 10px;
-moz-border-radius:10px 0 0 10px;
-webkit-border-radius:10px 0 0 10px;
-o-border-radius:10px 0 0 10px;
border:0 none;
width:160px;
 }
 
 </style>
 <div class ="col-md-1"></div>
 <div class ="col-md-10">
<div class="row">
<div class="col-md-8">
   <div class="btn-group btn-group-justified">
  <div class="btn-group">
  <a href="<?php echo base_url("admin/travel/add");?>" class="btn btn-warning">
         <span class="glyphicon glyphicon-pencil"></span> เพิ่มที่ท่องเที่ยว
        </a>
        </div>
  <div class="btn-group">

  <a href="<?php echo base_url("admin/travel/request_add");?>" class="btn btn-warning">
          <span class="glyphicon glyphicon-plus-sign"></span> แจ้งเพิ่ม
        </a></div>
  <div class="btn-group"><a href="<?php echo base_url("admin/restaurant/request-edit");?>" class="btn btn-warning">
          <span class="glyphicon glyphicon-edit"></span> แจ้งแก้ไข
        </a></div>
  <div class="btn-group"><a href="<?php echo base_url("admin/travel/request_del");?>" class="btn btn-warning">
          <span class="glyphicon glyphicon-minus-sign"></span> แจ้งลบ
        </a></div>
       

</div>
</div>

<form id="searchthis" action="<?php echo base_url('admin/travel/admin_search');?>" style="display:inline;" method="post">
  <input id="namanyay-search-box" name="name" size="40" type="text" placeholder="Search here..."/>
  <button id="namanyay-search-btn" value="Search" type="submit"/>Search</button>
  </form>
</div><br/>
<section class="cat-widget wdg-cat-opposite clearfix">
<div class="widget-title">
      <h3><a href="#">Travel list</a></h3>
      <span class="sub-title">รายการที่ท่องเที่ยว</span>
      <div class="sep-widget"></div>
  </div>
</section><br/>
 <?php
    if(!empty($traList)){
    ?>
      <table class="table1" >
      <thead>
        <tr>
          <th scope="col" >รูป</th>
          <th scope="col" >ชื่อโพสต์</th>
          <th scope="col" >ผู้โพสต์</th>
          <th scope="col" >วันที่โพสต์</th>
          <th scope="col" >แก้ไข & ลบ </th>
        </tr>
      </thead>
      <tbody>
    <?php
      foreach($traList as $key => $value) {
    ?>
        <tr>
          <td><img class="pic" src="<?php echo $imagepath;?>/upload/image_small/<?php echo $value['img_small'];?>"></td>
          <td class="span2"><?php echo $value['name']; ?></td>
          <td><?php echo $value["user"]["first_name"].$value["user"]["last_name"];?></td>
          <td class="span2"><?php echo $value["update_date"];?></td>
          <td class="span2">
            <a href="#" class="imageedit"><img src="<?php echo $imagepath;?>/edit.png"  /></a>&nbsp; &nbsp;
            <a href="#" class="imageedit"><img src="<?php echo $imagepath;?>/remove.png"  /></a>  
          </td>
        </tr>
    <?php
      } // End foreach
    ?>
      </tbody>
      </table>
      <?php
    }else{
      echo "Empty List";
    } // End if
    ?>

</section>
</div>
<div class ="col-md-1"></div>
